package com.liugh.entity.standard;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Fatao on 2018/11/12 .
 */

@Builder
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("standard_advise")
public class StandardAdvise extends Model<StandardAdvise> {


    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @TableField("title")
    private String title;

    @TableField("standard_item_id")
    private int standardItemId;


    @TableField("advise_dir")
    private String adviseDir;


    @TableField("full_advise_dir")
    private String fullAdviseDir;


    @TableField("finish_time")
    private Date finishTime;


    @TableField("create_time")
    private Date createTime;



//    0-意见征求中
//    1-意见征求完成
    @TableField("status")
    private int status;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
